package org.zjvis.graph.analysis.service.enums;

public enum ApiResultCode {

    SUCCESS(100, "成功!"),
    PARAM_ERROR(201, "参数错误!"),
    SYS_ERROR(500, "服务端异常!"),

    UNDO_FAILED(601, "执行撤销失败，可能没有可用的操作"),
    REDO_FAILED(602, "执行重做失败，可能没有可用的操作"),

    /** graph */
    GRAPH_LOAD_FORMAT_ERROR(901, "文件格式不支持");

    int code;
    String message;

    ApiResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


}
